// console.log("success load first.js");
let add = 12


export const a = 1;
export let b = 2;
let c = 3
let d = 4
let ee = 5
export {
    c, d,
    ee as e
}

let sum = (a, b) => {
    if (!Number.isInteger(a)){
        return `variable a is not num,${a}`
    }
    return a + b
};

let data = {
    name:"abc",
    age:18,
    showName(){
        return this.name
    },
    showAge(){
      return this.age //todo 必须this
    }
};


let consoleprint=(str)=> {
    console.log(`===============${str}================================`)
};
export {
    sum,
    consoleprint,
    data,
}
export default { //todo default 不能用在 对象与 函数上
    add
};